<?php
namespace app\mobile\controller;
use library\Controller;
use think\Db;
use app\mobile\service\CompanyService;


/**
 * 基类控制器
 * Class Base
 * @package app\company\controller
 */
class Base extends Controller
{
	public $company;
	
	public function __construct()
    {
    	parent::__construct();
        $result = CompanyService::CompanyInfo(session('company_user.id'));
		if(!$result){
			$this->error('数据错误');
		}
		$this->company = $result;
    }
}
